class EMIBlueMdoel {
  late String snCode;
  late String magic;
  late String cmd;
  late List<int> originData;
  late List<int> content;
  late Function(EMIBlueMdoel data) callBack;

  EMIBlueMdoel.creatWithData(List<int> data) {
    originData = data;
    if (data.length > 4) {
      content = originData.sublist(4);
    }
    magic = originData.sublist(1, 2).hashCode.toRadixString(16);
    cmd = originData.sublist(4, 5).hashCode.toRadixString(16);
  }
}
